<template>
  <div>
    <div class="footer">
        <div class="left">共{{ totalCount }}条记录 第 {{region.pageIndex}}/{{ Math.ceil(totalCount/10) }} 页</div>
        <div class="right">
          <el-button type="success" @click="$emit('goup',-1)" :disabled="(region.pageIndex === 1? true:false)">上一页</el-button>
          <el-button type="success" @click="$emit('goup',1)" :disabled="(region.pageIndex === Math.ceil(totalCount/10)? true:false)">下一页</el-button>
        </div>
      </div>
  </div>
</template>

<script>
export default {
props:{
  totalCount:{
    type:String,
    required:true
  },
  region:{
    type:Object,
    required:true
  }
},
methods: {
  // 页数
}
}
</script>

<style lang="scss" scoped>

</style>